import { Type } from 'class-transformer'
import { Allow, IsNotEmpty } from 'class-validator'
import i18n from '@/i18n'
import { ApiProperty } from '@nestjs/swagger'

export class MetaBoardDataGetByIdDto {
  @ApiProperty({ description: 'ID' })
  @IsNotEmpty()
  @Type(() => Number)
  id: number

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-board-data-get-by-id.12152194-0') })
  @Allow()
  dataHash?: string
}
